namespace PropertyExpression.ControllableQuery.Toolkit.Test.Queries
{
    public class Error12Query : IQuery<IError2QueryInfo>
    {
        private readonly IParam<string> modelCode;
        private readonly IParam<string> modelSequence;

        public Error12Query(IParam<string> modelCode, IParam<string> modelSequence)
        {
            this.modelCode = modelCode;
            this.modelSequence = modelSequence;
        }

        public string TransformText()
        {
            return new Q(@"SELECT
    ModelPublication.PublicationId,
    ModelPublication.ModelCode,
    ModelPublication.ModelSequence
FROM
    ModelPublication
WHERE
    ModelPublication.ModelCode = ")._(modelCode)._(@"AND
    ModelPublication.ModelSequence = ")._(modelSequence).ToString();
        }
    }
}